package com.ccb.jyzx.expand.ouapi.dao.ouapi;

import com.ccb.jyzx.expand.ouapi.beans.UserInfo;
import com.ccb.jyzx.expand.ouapi.beans.sync.DepartmentInfoSync;
import com.ccb.jyzx.expand.ouapi.beans.sync.UserInfoSync;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author XIEFEI
 * @date 2019-11-11 14:42
 * @Description report数据源Dao
 **/
public interface UserInfoDao {
    Integer oouTest();

    UserInfo getById(@Param("id") String id);

    UserInfo getByUserName(@Param("userName")String userName);

    List<UserInfo> getByDepId(@Param("depId")String depId);

    List<UserInfo> getByOrgId(@Param("orgId")String orgId);

    List<UserInfoSync> getAllSync();

    void save(UserInfoSync userInfoSync);

    void update(UserInfoSync userInfoSync);

    void deleteById(@Param("id")String id);
}
